<template>
  <div class="charts" ref="charts"></div>
</template>
<script>
import * as echarts from 'echarts';

export default {
  name: '',
  mounted() {
    let lineCharts = echarts.init(this.$refs.charts);
    lineCharts.setOption({
      xAxis: {
        show: false,
        type: 'category',
      },
      yAxis: {
        show: false,
      },
      series: [
        {
          type: 'bar',
          data: [16, 40, 33, 50, 20, 30, 15, 25, 80],
          color: 'cyan',
        },
      ],
      tooltip: {},
      grid: {
        left: 0,
        top: 5,
        right: 0,
        bottom: 0,
      },
    });
  },
};
</script>
<style scoped>
.charts {
  width: 100%;
  height: 100%;
}
</style>